package com.rs.dao;

import com.github.pagehelper.Page;
import com.rs.model.ZhAskFor;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ZhAskForMapper {


    int deleteByPrimaryKey(Integer askId);

    int insert(ZhAskFor record);
    
    ZhAskFor selectByPrimaryKey(Integer ask_id);

    List<ZhAskFor> askforselectAll();

    int updateByPrimaryKey(ZhAskFor record);

	List<ZhAskFor> askforSelectByTiaojian(ZhAskFor askfor);
    
    //审核某条请假信息
    int updateZhAskForAudit(ZhAskFor record);
    
    //根据状态查看所有人员的请假信息记录
    Page<ZhAskFor> selectZhAskForAudit(@Param("askAudit")Integer askAudit);
    
    //人员根据状态查看自己所有的请假信息
    Page<ZhAskFor> selectOneselfZhAskForAudit(ZhAskFor record);
    
    
}